CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - socket thread
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - socket thread - List
[
WinSock-NDIS
]
一个用socket来实现HTTP下载的程序源码
DL : 0
本文附带源代码还包括了一个使用CHttpSocket实现下载功能的例子工程.注意,所有的调用都是阻塞的,所以最好为一个下载任务创建一个线程,否则会导致界面无法响应用户输入. 程序运行界面如上图,显示了请求头,回应头以及下载进度.-fringe source code is also included use of a functional CHttpSocket download the example works. Attention, all calls are blocked, it's best to download a mandate to create a thread, otherwise they will be unable to respond led interface user input. As running interface map shows that the first request in response to the first progress of the download.
Date
: 2008-10-13
Size
: 88.14kb
User
:
屠理峰
[
TCP/IP stack
]
SOCKET-TCP
DL : 1
SOCKET多线程,使用TCP连接,当有一个连接请求时候,建立一个线程。共有两个文件,一个Server,还有一个是Client-SOCKET multithreading, the use of TCP connections, when a link request, the establishment of a thread. A total of two documents, one Server, there is a Client
Date
: 2008-10-13
Size
: 23.92kb
User
:
的三分
[
Internet-Network
]
commoncpp2-1.5.3.tar
DL : 0
common c++提供socket,thread等系统编程可移植的实现。 是ccrtp必要的资源库-common c provide socket, thread programming systems such as portable realized. Ccrtp is necessary resources for
Date
: 2008-10-13
Size
: 820.66kb
User
:
skynova
[
WinSock-NDIS
]
SocketProgrammingThreadPool
DL : 0
socket & thread pool实例
Date
: 2008-10-13
Size
: 12.41kb
User
:
wing
[
Windows Develop
]
2003061723305924139多线程Socket
DL : 0
2003061723305924139多线程Socket,多线程,通信开发-multi-thread Socket, writing by communications
Date
: 2008-10-13
Size
: 395.39kb
User
:
武明
[
Internet-Network
]
NetLibrary
DL : 0
网络socket,IO,线程池,同步,日志等等, 利用面向对象以及范性特性,为在VC下开发网络应用程序打下坚实的底层基础。-network socket, IO, thread pool, synchronization, log, etc., and the use of object-oriented Fan sexual characteristics, for the VC and development of network applications and lay a solid basis for the bottom.
Date
: 2025-07-13
Size
: 138kb
User
:
詹皇源
[
Internet-Network
]
thesocket
DL : 0
关于linux下基于QT界面socket编程的简单实例 -based on the QT socket programming interface simple example
Date
: 2025-07-13
Size
: 3kb
User
:
郭建川
[
P2P
]
基于TCP-IP多线程文件传输
DL : 3
多线程socket文件传输,很好的一个例子,极力推荐-multi-thread socket programming for file translating. this is a very good example.
Date
: 2025-07-13
Size
: 133kb
User
:
啊q
[
Internet-Network
]
端口扫描检测程序
DL : 0
* 本程序是一个简单的端口扫描程序,使用TCP SOCKET * 依次试连接目标主机的端口,以此判断端口开放与否。 * 程序设计上使用了线程池,共100个线程。-* The procedure is a simple port scanning procedures, the use of TCP socket* followed test objectives mainframe connectivity ports in order to judge whether to open ports.* Procedures for the use of the design thread pool, a total of 100 threads.
Date
: 2025-07-13
Size
: 1kb
User
:
吕杰
[
Windows Develop
]
sf_200562516252
DL : 0
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below: struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void* p, char* buf, int len) void OnAccept(SOCKET socket) void OnClose(void* p) } void myIocp::OnAccept(SOCKET socket) { TSession*s = new TSession s->socket = socket //here you can do something about connection session,such as find a unique id. SetIoCompletionPort(socket, s) // make connection socket associate with a custom structure } void myIocp::OnRead(void* p, char* buf, int len) { TSession*s = (TSession*)p send(s->socket, buf, len, 0) // return received message to client void myIocp::OnClose(void* p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) //start listenning net port,wait for client connect.
Date
: 2025-07-13
Size
: 2kb
User
:
boxu
[
Internet-Network
]
ServerSocket
DL : 0
multi thread server socket demo
Date
: 2025-07-13
Size
: 213kb
User
:
ccccccckkk
[
Software Engineering
]
vbfrance_SOCKET-CLASS-SOCKET-AVEC-EVENEMENTS-MULT
DL : 0
vb visual connexion multi thread
Date
: 2025-07-13
Size
: 75kb
User
:
dams
[
Internet-Network
]
vc_thread_socket_programming_code_programming
DL : 0
vc编程实现线程套接字编程代码vc thread socket programming code programming -vc thread socket programming code programming
Date
: 2025-07-13
Size
: 39kb
User
:
7
[
Internet-Network
]
socket
DL : 1
一个简单的socket服务器,两个独立的线程分别处理输入流和输出流,然后一个简单的线程池处理从输入流中解析出来的iso8583数据包-A simple socket server, two separate threads are processing the input and output streams, then a simple thread pool to parse from the input stream of data packets out of the iso8583
Date
: 2025-07-13
Size
: 4kb
User
:
houxiaomeng
[
Internet-Network
]
Socket
DL : 0
VC++ 线程非阻塞SOCKET通信 服务器与客户端发消息只建立一个套接字-SOCKET VC++ thread non-blocking message communications server and client to establish a socket only
Date
: 2025-07-13
Size
: 7mb
User
:
cuihang
[
TCP/IP stack
]
CMultiSvr-(SOCKET-API-Multi-Thread)
DL : 0
socket API 非阻塞消息方式下写的TCP客户端示例(一客户端连接多服务器)-socket API no blocking tcp client
Date
: 2025-07-13
Size
: 3.49mb
User
:
赵强
[
Documents
]
socket
DL : 0
写入用“插座”线程通信以建立要求的服务器和客户端具有发送和接收信息的功能的Java应用程序,由服务器发送到客户端的信息是“NII”没有,客户端接收该信息后,变更它为“东软信息科学”,然后发送到服务器。-Written to use socket thread communication to establish a Java application that requires the server and client have the function of sending and receiving information, the information sent by the server to the client is NII No, Client after receiving the information, change it to Neusoft information Science , and then sent to the server.
Date
: 2025-07-13
Size
: 1kb
User
:
李佳
[
Internet-Network
]
socket-server-socket-serve
DL : 0
这是一个关于各种IO模型的socket server实现与测试。 这里采用多种模型实现了一个TCP ECHO服务器,将client发送的内容echo回去。 client每秒会发送一次请求,server保持并发连接并进行相应。 现已实现的模型: base: 最原始的echo服务器 thread: 多线程模型 select: select模型 poll: poll模型 epoll: epoll模型 参数 修改src/clients.sh 可以生成指定数量的client 修改src/base.cpp 中的MAX_CLIENT_NUM参数调整server最大服务数 修改src/base.cpp 中的CLIENT_INTERVAL参数调整client发包间隔 修改Makefile 中的DEBUG参数确定是否输出调试信息 使用方法(This is a socket server implementation and testing of various IO models. Here, a variety of models are used to implement a TCP ECHO server that returns the contents sent by echo back to client. Client sends a request per second, and server maintains concurrent connections and performs them accordingly. The model has been implemented: Base: the most primitive echo server Thread: multithreaded model Select: select model Poll: poll model Epoll: epoll model parameter Modify src/clients.sh to generate a specified number of client Modify the MAX_CLIENT_NUM parameter in src/base.cpp to adjust the maximum number of server services Modify the CLIENT_INTERVAL parameter in src/base.cpp to adjust the client contract interval Modify the DEBUG parameter in the Makefile to determine whether output debugging information is out Usage method)
Date
: 2025-07-13
Size
: 11kb
User
:
JIE2012
[
CSharp
]
multi-thread-simple-crawler-socket
DL : 0
简单的爬虫功能,socket线程。满足基本的功能,想学习爬虫的同学,可以下载参考。(Simple crawler function, socket thread)
Date
: 2025-07-13
Size
: 444kb
User
:
甘红梅
[
Linux-Unix
]
单线程socket实现
DL : 0
C-S构架的linux 网络socket 单线程编程(Socket single thread programming of Linux Network Based on C-S framework)
Date
: 2025-07-13
Size
: 2kb
User
:
小k当家
«
1
2
3
4
5
6
7
8
9
10
...
20
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.